// import { ResPage, Member } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import http from "@/api";
import { BusinessOverview, Reporting, UserBalanceTotal, TradeAnalysis } from "../interface";
// import qs from "qs";

/**
 * @name 报表管理
 */

// 获取表报数据
export const getPageReport = (params?: {}) => {
  return http.post<any>(PORT1 + `/CoreCmsReports/GetPageReport`, params);
};

export const GetBusinessDaySummary = (params?: {}) => {
  return http.post<Reporting.BusinessDaySummary>(PORT1 + `/CoreCmsReports/GetBusinessDaySummary`, params);
};

export const GetRechargeConsume = (params?: {}) => {
  return http.post<Reporting.RechargeConsumeData>(PORT1 + `/CoreCmsReports/RechargeConsume`, params);
};

export const GetUserBalanceTotal = (params?: {}) => {
  return http.post<UserBalanceTotal>(PORT1 + `/CoreCmsReports/GetUserBalanceTotal`, params);
};

export const GetBusinessOverview = (params?: {}) => {
  return http.post<BusinessOverview>(PORT1 + `/CoreCmsReports/GetBusinessOverview`, params);
};

export const GetTradeAnalysis = (params?: {}) => {
  return http.post<TradeAnalysis>(PORT1 + `/CoreCmsReports/GetTradeAnalysis`, params);
};
export const getEmployeePerformanceList = (params?: {}) => {
  return http.post<Reporting.EmployeePerformanceList>(PORT1 + `/CoreCmsReports/GetPageReport`, params);
};
